package guo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author: gsq
 * @description: TODO
 * @date: 2024/6/3 13:53
 * @version: 1.0
 */
@RestController
@RequestMapping("/file")
public class MultiPartFileController {

    @RequestMapping("/multipart")
    public String getMutiPartFile(MultipartFile file){
        System.out.println(file.getName());
        System.out.println(file.getOriginalFilename());
        return "good";
    }
}
